package com.woniu.supermarket.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniu.supermarket.entity.Member;
import com.woniu.supermarket.entity.PurchaseDetail;
import com.woniu.supermarket.entity.Shop;
import com.woniu.supermarket.entity.Supplier;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@ApiModel(description = "封装销售单信息")
@Data
@ToString
public class SalesVo {

    @ApiModelProperty(value = "销售订单id")
    private Integer id;

    @ApiModelProperty(value = "销售订单号")
    private String salesNumber;

    @ApiModelProperty(value = "下单时间")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dateTime;

    @ApiModelProperty(value = "会员对象")
    private Member member;

    @ApiModelProperty(value = "抵扣的会员积分")
    private Integer useMemberIntergral;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "门店对象")
    private Shop shop;

    @ApiModelProperty(value = "采购人员")
    private String cashier;


    @ApiModelProperty(value = "支付状态")
    private Integer status;

 /*   @ApiModelProperty(value = "采购单详情集合")
    private List<PurchaseDetail> purchaseDetailList;*/
}
